//第二种方式代码封装
//封装http.ListenAndServe(":8080", mux)功能
//05http.go
package main

import (
	"GoHTTP/01httpBase/05httpBase/route" //你复制过去的代码，前面的HTTP/01httpBase/03httpBase/根据需要修改
	//"fmt"
	//"net/http"
)

func main() {
	mux := route.NewMyMux() //通过调用一个方法来实现
	mux.Listen(":8080")     //http.ListenAndServe(":8080", mux)
}
